package zuoye3;

public class SilverCard extends  Card{
    public SilverCard(String id, double money, int pay) {
        super(id, money, pay);
    }

    @Override
    public void payMoney(double  money,double paymoney) {
        //System.out.println("使用银卡支付");
        double needpaymoney = paymoney * 0.9;
        System.out.println("使用银卡支付"+"支付金额：" + needpaymoney);
        System.out.println("会员卡余额：" +(money-needpaymoney));
    }
}
